/**
 * Created by lx on 2017/6/22.
 */
var mongoose = require('mongoose');
var setting = require('../common/config');
mongoose.connect('mongodb://'+setting.dbhost+':'+setting.dbport+'/'+setting.dbname, function (err) {
    if(err)
        throw err;
    console.log('数据库连接成功！');
});


module.exports = mongoose;